//
//  JYBaseStatics.h
//  kunlun
//
//  Created by zhusanbao on 2020/9/25.
//  Copyright © 2020 zhusanbao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface JYBaseStatics : NSObject
/** systemFont pingfang default PingFangSC-Regular */
UIFont * _Nonnull U_font(CGFloat fontSize);
/** boldSystemFont  ping fang default PingFangSC-Semibold */
UIFont * _Nonnull U_bfont(CGFloat fontSize);
UIFont * _Nonnull U_sfont(CGFloat fontSize);

/** DINAlternate-Bold */
UIFont * _Nonnull jy_atbfont(CGFloat fontSize);
/** hex color create  */
UIColor * _Nonnull jy_HexColor(NSString * _Nonnull cl);
/** 随机色  */
UIColor * _Nonnull jyRandomColor(void);
/** image object  */
UIImage * _Nullable U_imageNamed(NSString * _Nullable im);
/** image with render  */
UIImage * _Nullable jy_imageRenderNamed(NSString * _Nullable im,UIImageRenderingMode mode);
/** contentFile加载  */
UIImage * _Nullable jy_imageContentFile(NSString * _Nullable fp);

UIImage * _Nullable jy_imageFromImagesBundle(NSString * _Nullable imageName, NSString *_Nullable type);

/** load image from bundle with bundle name image name and type  */
UIImage * _Nullable jy_imageFromBundleForType(NSString *_Nullable bundleName, NSString * _Nullable imageName, NSString *_Nullable type);
/** load image from bundle with bundle name image name and type of png  */
UIImage * _Nullable jy_imageFromBundle(NSString *_Nullable bundleName, NSString * _Nullable imageName);

UIImage * _Nullable jy_imageRenderContentFile(NSString * _Nullable fp, UIImageRenderingMode mode);

NSTimer * _Nullable dispatch_count_down(dispatch_time_t dur,id _Nullable host, void (^ _Nullable block)(NSTimer * _Nonnull tm, id _Nullable host, NSTimeInterval now));
/** 格式化时间  */
NSString * _Nullable jy_formatTimeFromDuration(long long duration);
/** 点赞量、观看量格式化  */
NSString * _Nullable jy_formatDigital(NSInteger d);

NSDictionary * _Nullable jy_app_Info(void);

@end
